package com.company.huisuo.biz.dialog

import android.app.Activity
import com.company.huisuo.R
import com.company.huisuo.base.BaseCenterPopupView
import com.company.huisuo.databinding.DialogScanPayBinding

/**
 * 扫码
 */
class ScanPayDialog(
    activity: Activity, val dismissClick: () -> Unit
) : BaseCenterPopupView<DialogScanPayBinding>(activity) {
    override val getLayoutId: Int
        get() = R.layout.dialog_scan_pay
    override val getViewBinding: DialogScanPayBinding
        get() = DialogScanPayBinding.bind(contentView)

    override fun initData() {
        mBinding.ivClose.setOnClickListener {
            dismissClick.invoke()
            dismiss()
        }
    }
}